package com.carcenter.personnel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carcenter.common.dto.LoginDto;
import com.carcenter.common.dto.ModifyDto;
import com.carcenter.common.dto.RegisterDto;
import com.carcenter.common.dto.StaffDto;
import com.carcenter.common.result.Result;
import com.carcenter.common.vo.LoginVo;
import com.carcenter.personnel.entity.Staff;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author car
 * @since 2025-07-16
 */
public interface IStaffService extends IService<Staff> {

    LoginVo login(LoginDto loginDto);

    Staff register(RegisterDto registerDto);

    Page<Staff> getStaffDetail(Integer pageNum, Integer pageSize, StaffDto staffDto);

    void modifyPassword(Integer id, ModifyDto modifyDto);


    void checkPhone(RegisterDto registerDto);

    void updateStaff(Staff staff);

    void removeStaff(Integer id);
}
